<?php

use think\Model;

/**
 * 黑名单
 * Class BlackListModel
 * @property int id 主键
 * @property int uid 用户表主键
 * @property string group_ids 群列表
 * @property string created 创建时间
 */
class BlackListModel extends Model
{
    // 完整数据表名称
    protected $table = 'cq_blacklist';

    // 设置废弃字段
    protected $disuse = [];

    // 设置字段信息
    protected $schema = [
        'id' => 'int',
        'uid' => 'int',
        'group_ids' => 'string',
        'created' => 'datetime'
    ];

    // 设置只读字段
    protected $readonly = ['id', 'uid', 'created'];

    /**
     * 获取表字段
     * @return array
     */
    public function getTableField(): array
    {
        return $this->schema;
    }
}
